package gjbsh.bangong.ds.model;

import java.util.ArrayList;
import java.util.List;

public class 权限模块Example {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public 权限模块Example() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria and模块idIsNull() {
            addCriterion("模块ID is null");
            return (Criteria) this;
        }

        public Criteria and模块idIsNotNull() {
            addCriterion("模块ID is not null");
            return (Criteria) this;
        }

        public Criteria and模块idEqualTo(String value) {
            addCriterion("模块ID =", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idNotEqualTo(String value) {
            addCriterion("模块ID <>", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idGreaterThan(String value) {
            addCriterion("模块ID >", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idGreaterThanOrEqualTo(String value) {
            addCriterion("模块ID >=", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idLessThan(String value) {
            addCriterion("模块ID <", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idLessThanOrEqualTo(String value) {
            addCriterion("模块ID <=", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idLike(String value) {
            addCriterion("模块ID like", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idNotLike(String value) {
            addCriterion("模块ID not like", value, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idIn(List<String> values) {
            addCriterion("模块ID in", values, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idNotIn(List<String> values) {
            addCriterion("模块ID not in", values, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idBetween(String value1, String value2) {
            addCriterion("模块ID between", value1, value2, "模块id");
            return (Criteria) this;
        }

        public Criteria and模块idNotBetween(String value1, String value2) {
            addCriterion("模块ID not between", value1, value2, "模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idIsNull() {
            addCriterion("父模块ID is null");
            return (Criteria) this;
        }

        public Criteria and父模块idIsNotNull() {
            addCriterion("父模块ID is not null");
            return (Criteria) this;
        }

        public Criteria and父模块idEqualTo(String value) {
            addCriterion("父模块ID =", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idNotEqualTo(String value) {
            addCriterion("父模块ID <>", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idGreaterThan(String value) {
            addCriterion("父模块ID >", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idGreaterThanOrEqualTo(String value) {
            addCriterion("父模块ID >=", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idLessThan(String value) {
            addCriterion("父模块ID <", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idLessThanOrEqualTo(String value) {
            addCriterion("父模块ID <=", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idLike(String value) {
            addCriterion("父模块ID like", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idNotLike(String value) {
            addCriterion("父模块ID not like", value, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idIn(List<String> values) {
            addCriterion("父模块ID in", values, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idNotIn(List<String> values) {
            addCriterion("父模块ID not in", values, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idBetween(String value1, String value2) {
            addCriterion("父模块ID between", value1, value2, "父模块id");
            return (Criteria) this;
        }

        public Criteria and父模块idNotBetween(String value1, String value2) {
            addCriterion("父模块ID not between", value1, value2, "父模块id");
            return (Criteria) this;
        }

        public Criteria and标题IsNull() {
            addCriterion("标题 is null");
            return (Criteria) this;
        }

        public Criteria and标题IsNotNull() {
            addCriterion("标题 is not null");
            return (Criteria) this;
        }

        public Criteria and标题EqualTo(String value) {
            addCriterion("标题 =", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题NotEqualTo(String value) {
            addCriterion("标题 <>", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题GreaterThan(String value) {
            addCriterion("标题 >", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题GreaterThanOrEqualTo(String value) {
            addCriterion("标题 >=", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题LessThan(String value) {
            addCriterion("标题 <", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题LessThanOrEqualTo(String value) {
            addCriterion("标题 <=", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题Like(String value) {
            addCriterion("标题 like", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题NotLike(String value) {
            addCriterion("标题 not like", value, "标题");
            return (Criteria) this;
        }

        public Criteria and标题In(List<String> values) {
            addCriterion("标题 in", values, "标题");
            return (Criteria) this;
        }

        public Criteria and标题NotIn(List<String> values) {
            addCriterion("标题 not in", values, "标题");
            return (Criteria) this;
        }

        public Criteria and标题Between(String value1, String value2) {
            addCriterion("标题 between", value1, value2, "标题");
            return (Criteria) this;
        }

        public Criteria and标题NotBetween(String value1, String value2) {
            addCriterion("标题 not between", value1, value2, "标题");
            return (Criteria) this;
        }

        public Criteria and图片urlIsNull() {
            addCriterion("图片URL is null");
            return (Criteria) this;
        }

        public Criteria and图片urlIsNotNull() {
            addCriterion("图片URL is not null");
            return (Criteria) this;
        }

        public Criteria and图片urlEqualTo(String value) {
            addCriterion("图片URL =", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlNotEqualTo(String value) {
            addCriterion("图片URL <>", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlGreaterThan(String value) {
            addCriterion("图片URL >", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlGreaterThanOrEqualTo(String value) {
            addCriterion("图片URL >=", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlLessThan(String value) {
            addCriterion("图片URL <", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlLessThanOrEqualTo(String value) {
            addCriterion("图片URL <=", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlLike(String value) {
            addCriterion("图片URL like", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlNotLike(String value) {
            addCriterion("图片URL not like", value, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlIn(List<String> values) {
            addCriterion("图片URL in", values, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlNotIn(List<String> values) {
            addCriterion("图片URL not in", values, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlBetween(String value1, String value2) {
            addCriterion("图片URL between", value1, value2, "图片url");
            return (Criteria) this;
        }

        public Criteria and图片urlNotBetween(String value1, String value2) {
            addCriterion("图片URL not between", value1, value2, "图片url");
            return (Criteria) this;
        }

        public Criteria and连接urlIsNull() {
            addCriterion("连接URL is null");
            return (Criteria) this;
        }

        public Criteria and连接urlIsNotNull() {
            addCriterion("连接URL is not null");
            return (Criteria) this;
        }

        public Criteria and连接urlEqualTo(String value) {
            addCriterion("连接URL =", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlNotEqualTo(String value) {
            addCriterion("连接URL <>", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlGreaterThan(String value) {
            addCriterion("连接URL >", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlGreaterThanOrEqualTo(String value) {
            addCriterion("连接URL >=", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlLessThan(String value) {
            addCriterion("连接URL <", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlLessThanOrEqualTo(String value) {
            addCriterion("连接URL <=", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlLike(String value) {
            addCriterion("连接URL like", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlNotLike(String value) {
            addCriterion("连接URL not like", value, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlIn(List<String> values) {
            addCriterion("连接URL in", values, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlNotIn(List<String> values) {
            addCriterion("连接URL not in", values, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlBetween(String value1, String value2) {
            addCriterion("连接URL between", value1, value2, "连接url");
            return (Criteria) this;
        }

        public Criteria and连接urlNotBetween(String value1, String value2) {
            addCriterion("连接URL not between", value1, value2, "连接url");
            return (Criteria) this;
        }

        public Criteria and排序号IsNull() {
            addCriterion("排序号 is null");
            return (Criteria) this;
        }

        public Criteria and排序号IsNotNull() {
            addCriterion("排序号 is not null");
            return (Criteria) this;
        }

        public Criteria and排序号EqualTo(Long value) {
            addCriterion("排序号 =", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号NotEqualTo(Long value) {
            addCriterion("排序号 <>", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号GreaterThan(Long value) {
            addCriterion("排序号 >", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号GreaterThanOrEqualTo(Long value) {
            addCriterion("排序号 >=", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号LessThan(Long value) {
            addCriterion("排序号 <", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号LessThanOrEqualTo(Long value) {
            addCriterion("排序号 <=", value, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号In(List<Long> values) {
            addCriterion("排序号 in", values, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号NotIn(List<Long> values) {
            addCriterion("排序号 not in", values, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号Between(Long value1, Long value2) {
            addCriterion("排序号 between", value1, value2, "排序号");
            return (Criteria) this;
        }

        public Criteria and排序号NotBetween(Long value1, Long value2) {
            addCriterion("排序号 not between", value1, value2, "排序号");
            return (Criteria) this;
        }

        public Criteria and状态idIsNull() {
            addCriterion("状态ID is null");
            return (Criteria) this;
        }

        public Criteria and状态idIsNotNull() {
            addCriterion("状态ID is not null");
            return (Criteria) this;
        }

        public Criteria and状态idEqualTo(Long value) {
            addCriterion("状态ID =", value, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idNotEqualTo(Long value) {
            addCriterion("状态ID <>", value, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idGreaterThan(Long value) {
            addCriterion("状态ID >", value, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idGreaterThanOrEqualTo(Long value) {
            addCriterion("状态ID >=", value, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idLessThan(Long value) {
            addCriterion("状态ID <", value, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idLessThanOrEqualTo(Long value) {
            addCriterion("状态ID <=", value, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idIn(List<Long> values) {
            addCriterion("状态ID in", values, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idNotIn(List<Long> values) {
            addCriterion("状态ID not in", values, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idBetween(Long value1, Long value2) {
            addCriterion("状态ID between", value1, value2, "状态id");
            return (Criteria) this;
        }

        public Criteria and状态idNotBetween(Long value1, Long value2) {
            addCriterion("状态ID not between", value1, value2, "状态id");
            return (Criteria) this;
        }

        public Criteria and连接方式IsNull() {
            addCriterion("连接方式 is null");
            return (Criteria) this;
        }

        public Criteria and连接方式IsNotNull() {
            addCriterion("连接方式 is not null");
            return (Criteria) this;
        }

        public Criteria and连接方式EqualTo(String value) {
            addCriterion("连接方式 =", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式NotEqualTo(String value) {
            addCriterion("连接方式 <>", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式GreaterThan(String value) {
            addCriterion("连接方式 >", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式GreaterThanOrEqualTo(String value) {
            addCriterion("连接方式 >=", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式LessThan(String value) {
            addCriterion("连接方式 <", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式LessThanOrEqualTo(String value) {
            addCriterion("连接方式 <=", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式Like(String value) {
            addCriterion("连接方式 like", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式NotLike(String value) {
            addCriterion("连接方式 not like", value, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式In(List<String> values) {
            addCriterion("连接方式 in", values, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式NotIn(List<String> values) {
            addCriterion("连接方式 not in", values, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式Between(String value1, String value2) {
            addCriterion("连接方式 between", value1, value2, "连接方式");
            return (Criteria) this;
        }

        public Criteria and连接方式NotBetween(String value1, String value2) {
            addCriterion("连接方式 not between", value1, value2, "连接方式");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}